﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DefectDBTypes;


namespace Graph
{
    /// <summary>
    /// Interaction logic for SoftwareGraph.xaml
    /// </summary>
    public partial class SoftwareGraph : Window
    {
        private MonitoredSoftware mw_soft;

        public event PropertyChangedEventHandler PropertyChanged;

        private void FirePropertyChangedEvent(string propertyName)
        {
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }

        public MonitoredSoftware Software
        {
            get
            {
                return mw_soft;
            }
            set
            {
                mw_soft = value;
                FirePropertyChangedEvent("Software");
            }
        }

        public SoftwareGraph()
        {
            InitializeComponent();
            DataContext = this;
        }


        private void OnLoaded(object sender, RoutedEventArgs e)
        {
            Software s;
            MonitoredSoftware ms = new MonitoredSoftware();

            s = new Software();
            s.Software_Name = "DL1";
        }
    }
}
